package com.qqclient.service;

import java.util.HashMap;

//该类管理客户端连接到服务端线程的类
public class ManageClinentConnectServerThrend {
    private static HashMap<String,ClientConnectServerThrend> hm= new HashMap<>();
    public static void addClinentConnectServerThrend(String UserId,ClientConnectServerThrend ClientConnectServerThrend){
        hm.put(UserId,ClientConnectServerThrend);
    }
    //通过UserId可以的到对应线程
    public static ClientConnectServerThrend getClinentConnectServerThrend(String UserId){
        return hm.get(UserId);
    }
}
